<!DOCTYPE html>
<html lang="en">
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
var countdown=60;
function settime(obj) {
    if (countdown == 0) {
        obj.removeAttribute("disabled");
        obj.value="免费获取验证码";
        countdown = 60;
        return;
    } else {
        obj.setAttribute("disabled", true);
        obj.value="重新发送(" + countdown + ")";
        countdown--;
    }
setTimeout(function() {
    settime(obj) }
    ,1000)
}

</script>
<head>
    <title>获取通话详情</title>
</head>
<style type="text/css">
    body {
        color: #efd;
        background: #453;
        padding: 0 5em;
        margin: 0
    }

    h1 {
        padding: 2em 1em;
        background: #675
    }

    h2 {
        color: #bf8;
        border-top: 1px dotted #fff;
        margin-top: 2em
    }

    p {
        margin: 1em 0
    }
</style>
<body>
<h1>获取用户报告</h1>
<form action="/api/credit/mobile/sendRestCaptcha" method="post">
    <dd>
            <span class="">短信验证码：</span>
        <br>
            <input name="msg_captcha" id="msg_captcha" placeholder="6位数字">
            <input type="button" id="btn" value="免费获取验证码" onclick="settime(this)"/>

    </dd>
{% csrf_token %}
</form>
<br>
<form method="post" action="/api/credit/mobile/getReport">
    <dd class="button">
            <input type="submit" value="提交">
        </dd>
</form>
</body>
</html>